<div ng-if="pagedata.showinfo" class="popup">
	<div class="popup-body">
		<div class="popup-center" style="background:url('{{siteroot}}../core/resource/images/login-bg-sm.jpg');background-size: 100%;">
		<i class="closed icon icon-cuowu" ng-click="pagedata.showinfo=false"></i>
		<div class="top" style="margin-top:-2.5rem;z-index:108">
			<div class="c">
				<img style="width:3rem;border-radius:100%" src="../addons/jy_aixiaoyi/resource/images/nan.png"  />
			</div>
		</div>
		<div class="fui-line-title bold" style="padding-top:0">
			<div>完善资料</div>
		</div>
		<div class="fui-content" style="position:relative;background:none;height:auto;width:auto;padding:1rem 0.5rem;margin-bottom:1rem">
			<div style="padding:0 0.5rem">
				<div class="fui-code" style="background: none;border-radius: 0.5rem;padding-bottom:1rem">
				<div class="fui-cell-group radius" style="background:none">
					<div class="fui-cell must" style="height:auto;">
						<div class="fui-cell-label" style="width:3rem">手机号</div>
						<div class="fui-cell-info"><input type="text" class='fui-input' style="background-color:#f2f2f2" placeholder="请输入您的手机号"  ng-model="pagedata.member.mobile" /></div>
					</div>
					<div class="fui-cell" style="height:auto;">
						<div class="fui-cell-label" style="width:3rem">昵  称</div>
						<div class="fui-cell-info"><input type="text" class='fui-input' style="background-color:#f2f2f2" placeholder="请输入您的昵称"  ng-model="pagedata.member.title" /></div>
					</div>
					<div class="fui-cell" style="height:auto;">
						<div class="fui-cell-label" style="width:3rem">性  别</div>
						<div class="fui-cell-info">
							<div style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
								<input type="radio" ng-click="pagedata.member.sex=1" ng-checked="pagedata.member.sex==1" class="fui fui-radio fui-radio-danger verify-radio" name="radio2" value="1"> 男
							</div>
							<div style="margin-right:0.8rem;float:left;margin-bottom:0.2rem">
								<input type="radio" ng-click="pagedata.member.sex=2" ng-checked="pagedata.member.sex==2" class="fui fui-radio fui-radio-danger verify-radio" name="radio2" value="2"> 女
							</div>
						</div>
					</div>
					<div class="fui-cell" style="height:auto;">
						<div class="fui-cell-label" style="width:3rem">选择顾问</div>
						<div class="fui-cell-info">
							<select class="weui_select" style="padding:0.3rem;margin-left:0.3rem" name="cateid2" ng-model="pagedata.member.guwenid">
								<option ng-repeat="item in pagedata.guwens" value="{{item.id}}">{{item.title}}</option>
							</select>
						</div>
					</div>
				</div>
				</div>
				<button class="weui_btn weui_btn_primary sysbgcolor" style="margin: auto;margin-top:1.5rem;width:80%;border-radius:1rem" href='javascript:;' ng-click="pagedata.showinfo=false;post(pagedata.member,'jy_aixiaoyi/home/setinfo/')">确认</button>
			</div>		
		</div>
		</div>
	</div>
</div>
<script>
	scope.pagedata.getguwens=function(){
		scope.get('jy_aixiaoyi/home/getguwens/',function(res){
			scope.pagedata.guwens=res.list;
			scope.pagedata.member=res.member;
			if(scope.pagedata.member && scope.pagedata.member.mid && scope.pagedata.member.isguwen!=1){
				scope.pagedata.showinfo=true
			}
			scope.$evalAsync();
		});
	}
	scope.pagedata.getguwens();
</script>